package com.zb.sannuo.maintenance.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zb.sannuo.common.domain.Role;
import com.zb.sannuo.common.domain.vo.RolePermissionVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermissionVo> {

    List<RolePermissionVo> queryRolePermission(Page page);

    int addPermission(Role role);

    //修改
    int updatePermission(Role role);

}
